<%-- 
    Document   : borrownote
    Created on :  21:54:45
    Author     : ccp <568093091@qq.com>
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <link rel="stylesheet" type="text/css" href="front/css/home-page.css"/>
        <link rel="stylesheet" type="text/css" href="front/css/borrowInformation.css"/>
        <link rel="stylesheet" type="text/css" href="front/css/jquery.mCustomScrollbar.css"/>
        <script src="front/js/jquery-1.11.2.js"></script>
        <script src="front/js/jquery.mCustomScrollbar.concat.min.js"></script>
        <script src="front/js/home-page.js"></script>
        <script src="front/js/borrowInformation.js"></script>
        <title>借阅信息</title>
    </head>
    <body class="all-page borrowInformation">
        <jsp:include page="head.jsp"></jsp:include>
        <div class="borrowPanel">
            <p class="title">借阅信息</p>
            <div class="scrollContent">
                <table>	
                    <thead>
                        <tr><th>借用物品</th><th>借取时间</th><th>应还时间</th><th>归还</th></tr>
                    </thead>
                    <c:forEach items="${borrowInfos}" var="borrowInfo" varStatus="s">
                        <tr>
                            <td>${borrowInfo.goods.name}</td>
                            <td>${borrowInfo.lendTime}</td>
                            <td><c:out value="${borrowInfo.returnTime}" default="无限期"/></td>
                            <c:choose>
                                <c:when test="${borrowInfo.isReturn==1}">
                                    <td>已归还</td>
                                </c:when>
                                <c:otherwise>
                                    <td>
                                        <form action="returnGoods" method="post">
                                            <input type="hidden" name="bid" value="${borrowInfo.id}"/>
                                            <input type="submit"  value="点我归还" />
                                        </form>
                                    </td>
                                </c:otherwise>
                            </c:choose>
                        </tr>
                    </c:forEach>
                </table>				
            </div>
        </div>
        <div class="conformTip">
            <p>确认已将物品归还？</p>
            <div class="buttonAdujust">
                <button class="yes">确认</button>
                <button class="cancel">取消</button>
            </div>
        </div>
        <div class="mask"></div>
    </body>
</html>

